Skip to content

fix: CSS tweak#39

Open
wmagev wants to merge 2 commits intoentrius:testfrom
wmagev:fix/toggle-button-zindex
Open

fix: CSS tweak#39
wmagev wants to merge 2 commits intoentrius:testfrom
wmagev:fix/toggle-button-zindex

Conversation

@wmagev
Copy link
Copy Markdown

@wmagev wmagev commented Apr 18, 2026

  • Fix wrong border for toggle button CSS
  • Fix Swap info breaking on mobile view

Before
before
After
after

Before
after

After
Screenshot from 2026-04-19 00-17-10

The ToggleButtonGroup's sibling buttons overlap borders by 1px via
MUI's default `marginLeft: -1px`. When a button is selected its
primary-colored border was hidden by the neighbor's transparent-border
edge. Giving each button `position: relative` and the selected one
`zIndex: 1` lifts the colored border above the overlap.
@wmagev wmagev changed the title fix: raise selected ToggleButton with zIndex to prevent border overlap fix: CSS tweak Apr 18, 2026
@wmagev
Copy link
Copy Markdown
Author

wmagev commented Apr 20, 2026

@LandynDev It's ready for review

@anderdc anderdc added the bug Something isn't working label Apr 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants